<?php

namespace common\logics;

/**
 * 推荐内容
 * 
 * @author emhome <emhome@163.com>
 * @since 1.0
 */
class PositionLogic extends \common\models\position\Position {

    /**
     * 获取当前导航 
     * @return array
     */
    public static function current($id = null) {
        $model = static::find()
        ->where(['id' => $id])
        ->with('content')
        ->one();
        if ($model) {
            return $model->list;
        }
        return [];
    }

}
